<template>
  <el-dialog title="停车流水照片" :visible.sync="imgVisibles" center width="720px">
    <div v-if="imgUrl === 'imagesnull'" style="width: 100%;height: 382px;">
      <h3 style="margin: 0 auto">暂无照片</h3>
    </div>
    <div v-else style="width: 100%;height: 382px;">
      <img :src="imgUrl" style="width: 682px;height: 382px">
    </div>
  </el-dialog>
</template>

<script>
  export default {
    name: 'record-img',
    props: ['imgVisible', 'imgUrl'],
    watch: {
      imgVisible(val) {
        this.imgVisibles = val
      },
      imgVisibles(val) {
        this.$emit('update:imgVisible', val)
      }
    },
    data() {
      return {
        imgVisibles: false
      }
    },
    methods: {}
  }
</script>

<style scoped>

</style>
